package jp.ac.u_tokyo.dch.model.xml;

import java.util.ArrayList;
import java.util.List;

import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(name= "displayitems")
public class DisplayItems {


	@ElementList(inline= true, required= false)
	private List<DisplayItem> list;

	public List<DisplayItem> getList() {
		return list;
	}
	public void setList(List<DisplayItem> list) {
		this.list = list;
	}

	public void addDisplayItem(DisplayItem item) {

		if (list == null) {

			list = new ArrayList<DisplayItem>();
		}

		list.add(item);

	}
}
